//
//  XZDropdownMenu.h
//  XZIBeeBo
//
//  Created by Sean on 16/4/5.
//  Copyright © 2016年 XZSean. All rights reserved.
//

#import <UIKit/UIKit.h>

@class XZDropdownMenu;

@protocol XZDropdownMenuDelegate <NSObject>
@optional
- (void)dropdownMenuDidDismiss:(XZDropdownMenu *)menu;
- (void)dropdownMenuDidShow:(XZDropdownMenu *)menu;
@end

@interface XZDropdownMenu : UIView
@property (nonatomic, weak) id<XZDropdownMenuDelegate> delegate;

/**
 *  拥有一个view的容器
 */
@property (nonatomic, strong) UIView *content;
/**
 *  拥有一个view的容器控制器
 */
@property (nonatomic,strong) UIViewController *contentController;

+ (instancetype)dropdownMenu;
/**
 *  显示控件
 */
- (void)showFrom:(UIView *)from;
/**
 *  移除控件
 */
- (void)dismiss;

@end
